<?php
	$css_list[0]['url'][] = './tpl/css/book.css';
	$css_list[0]['url'][] = './tpl/css/search.css';
	$js_list[0] = './public/js/jquery.masonry.js';
?>
<!--{template inc/header_w}-->
<div class="main_body">
    <!--{template inc/search_tabs}-->
    <div class="book_list" id="book_list">
		<!--{loop $share_list $share}-->
		<div class="book_item" shareID="{$share['share_id']}" id="share_item_{$share['share_id']}">
			<div class="bi_body">
				<ul class="pic">
					<!--{if ACTION_NAME == 'bao'}-->
					<!--{loop $share['goods_imgs'] $share_img}-->
					<li>
						<a style="width:200px;" href="{$share_img['url']}" target="_blank">
							<img class="book_img lazyload" original="{getimg $share_img['img'] 200 999}" width="200" src="./tpl/images/lazyload.gif" oldWidth="{$share_img['img_width']}" oldHeight="{$share_img['img_height']}" alt="{$share_img['alt']}"/>
						</a>
						<!--{if $share_img['commission'] > 0}-->
						<p class="fl">{lang buy_commission} 
                                    <script type="text/javascript">$.Commission_Format({$share_img['commission']});</script>
                                                </p>
						<!--{/if}-->
						<p>{$share_img['price_format']}</p>
						<a class="add_to_album_btn" href="javascript:;" style="display: none;" onclick="$.Show_Rel_Album($share_img['id'],'goods');"></a>
					</li>
					<!--{/loop}-->
					<!--{else}-->
					<!--{loop $share['imgs'] $share_img}-->
					<!--{if $share_img['type'] == 'g'}-->
					<!--{if ACTION_NAME == 'all'}-->
					<li>
						<a style="width:200px;" href="{$share_img['url']}" target="_blank">
							<img class="book_img lazyload" original="{getimg $share_img['img'] 200 999}" width=200 src="./tpl/images/lazyload.gif" oldWidth="{$share_img['img_width']}" oldHeight="{$share_img['img_height']}" alt="{$share_img['alt']}"/>
						</a>
						<!--{if $share_img['commission'] > 0}-->
						<p class="fl">{lang buy_commission} 
                                    <script type="text/javascript">$.Commission_Format({$share_img['commission']});</script>
                                                </p>
						<!--{/if}-->
						<p>{$share_img['price_format']}</p>
						<a class="add_to_album_btn" href="javascript:;" style="display: none;" onclick="$.Show_Rel_Album($share_img['id'],'goods');"></a>
					</li>
					<!--{/if}-->
					<!--{else}-->
					<li>
						<a style="width:200px;" href="{$share_img['url']}" target="_blank">
							<img class="book_img lazyload" original="{getimg $share_img['img'] 200 999}" width=200 src="./tpl/images/lazyload.gif" oldWidth="{$share_img['img_width']}" oldHeight="{$share_img['img_height']}" alt="{$share_img['alt']}"/>
						</a>
						<a class="add_to_album_btn" href="javascript:;" style="display: none;" onclick="$.Show_Rel_Album($share_img['id'],'photo');"></a>
					</li>
					<!--{/if}-->
					<!--{/loop}-->
					<!--{/if}-->
				</ul>
				<div class="content">
					{cutstr $share['content'] 100}
				</div>
				<div class="favorite">
					<a href="javascript:;" class="favaImg" onclick="$.Fav_Share({$share['share_id']},this,32,'#share_item_{$share['share_id']}');"></a>
					<div class="favDiv"><a target="_blank" class="favCount SHARE_FAV_COUNT" href="{$share['url']}"  >$share['collect_count']</a></div>
					<a target="_blank" href="{$share['url']}" class="creply"><b>{$share['comment_count']}</b>评论</a>
				</div>
				<div class="user">
					<!--{getuser $share['uid'] 0 's,30' ',lazyload'}-->
					<p>
						<span class="u"><!--{getuser $share['uid'] 0 '' ''}--></span>
						<span class="t">{$share['time']}</span>
					</p>
				</div>
			</div>
		</div>
		<!--{/loop}-->

        {if empty($share_list)}
        <div class="no_found">
            <div class="i_center"><img src="/public/v1/img/no_found.gif"><p>未找到与<span>"{$keyword}"</span>相关的信息</p></div>
        </div>
        {/if}

        <div class="g_clear"></div>
	</div>
</div>
<!--{if $pager['page_count'] > 1}-->
<div style="padding-top:30px" class="clearfix hide" id="pageBox">
    <div class="pagination"> 
        <!--{subtemplate inc/pages}--> 
    </div>
</div>
<!--{/if}-->
<div class="clear"></div>
<div id="pbLoading" style="background:url(./tpl/images/loading.gif) no-repeat center center;height:52px; display:none;"></div>
<div class="hide">
<!--{if $pager['page_count'] > 0}-->
<!--{loop $pb_list $url}-->
<a href="{$url}">{$url}</a>
<!--{/loop}-->
<!--{/if}-->
</div>
<script type="text/javascript">

</script>
<!--{template inc/footer}-->
